package com.anan.constants;

/**
 * @author anan
 * @date 2023/03/15/11:13
 **/
public final class Constants {


    /**
     * 返回码
     */
    public static final class RET_CODE{
        public static final String SUCCESS = "00000";//执行成功返回
        public static final String FAILED = "-99999";//执行失败返回
    }


    /**
     * 异常码
     */
    public static final class EXCEPTION_CODE{
        public static final String SYSTEM_UNKNOW_ERR = "SYSTEM_UNKNOW_ERR";
        public static final String BUSINESS_ERR = "BUSINESS_ERR";
    }


    /**
     * 商品状态
     */
    public static class PRODUCT_STATE {
        public static final int SHELVES_ON = 1;//上架
        public static final int SHELVES_OFF = 2;//下架
        public static final int DELETE = 3;//删除

    }

    /**
     * 作品状态
     */
    public static class OPUS_STATE {
        public static final int SHOW = 1;//展示
        public static final int SHOW_NO = 2;//下架
        public static final int DELETE = 3;//删除

    }

    /**
     * 审核状态
     */
    public static class ADMIN_STATUS {
        public static final int NO_PASS = 2;//审核中
        public static final int PASS = 1;//审核通过
    }


    public static final class TYPE{

        public static final int STUDENT = 1;//学生
        public static final int ADMIN = 2;//管理员
        //商品
        public static final int PRODUCT = 3;//商品
        public static final int OPUS = 4;//作品
    }

    /**
     * 购买状态
     */
    public static final class BUT_TYPE{

        public static final int BUY = 1;//已购买
        public static final int BUY_NO = 0;//未购买
        //商品
    }

    /**
     * 查询类型
     */
    public static final class QRY_TYPE {
        public static final String STU_PRO = "STU_PRO";//获取用户以及商品信息
        public static final String STU_OPUS = "STU_OPUS";//获取用户和作品信息
    }
}
